package net.ru.topdog.lunchy.main;

import java.util.List;

import net.ru.topdog.lunchy.Dish;
import net.ru.topdog.lunchy.dao.DAOFactory;
import net.ru.topdog.lunchy.menu.*;

public class MainController implements MainControllerInterface {
	MainModelInterface model;
	MainView view;
	
	public MainController(MainModelInterface model) {
		this.model=model;
		view = new MainView(this,model);
		view.createMainView();// Create start window with button for open window with menu for edit.
		view.runApplication();// RunMainView (Main window)
		
	}

@Override
	public void openWindowEditMenu() {
		//System.out.println("Opening window with menu...");//temporarily for testing
		model.setActivity(false);
		MenuModelInterface model = new MenuModel();
		
		String configFile="config.xml";//!!!!! remove
		model.setMode(DAOFactory.XML);
		model.setConfigFile(configFile);

		MenuControllerInterface controller = new MenuController(model);
		
		
		
		
	}

@Override
public void SetActivityModel() {
	// TODO Auto-generated method stub
	
}




}
